﻿using Mari.SmartHotel.Data;

namespace Mari.SmartHotel.Modules.Foundation.Guests
{
    public partial class EditGuestMainView : Mari.SmartHotel.Core.SHViewBase
    {
        public EditGuestMainView()
        {
            InitializeComponent();
        }

        private void cboCountries_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            if (cboCountries.SelectedItem != null)
            {
                cboDistricts.ItemsSource = ((Country)cboCountries.SelectedItem).Districts;
            }
        }

        private void cboDistricts_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
        {
            //if (cboCountries.SelectedItem != null)
            //{
            //    cboCi.ItemsSource = ((Country)cboCountries.SelectedItem).Districts;
            //}
        }
    }
}